﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class comyoozoogtaToolsUISpriteFrameRadarWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(com.yoozoo.gta.Tools.UI.SpriteFrameRadar);
			Utils.BeginObjectRegister(type, L, translator, 0, 4, 5, 5);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSpriteName", _m_RefreshSpriteName);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshSpriteNameAndMask", _m_RefreshSpriteNameAndMask);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAtlasNameAndSpriteName", _m_RefreshAtlasNameAndSpriteName);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasName", _g_get_atlasName);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasKey", _g_get_atlasKey);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteName", _g_get_spriteName);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameSecond", _g_get_frameSecond);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskName", _g_get_maskName);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasName", _s_set_atlasName);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasKey", _s_set_atlasKey);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteName", _s_set_spriteName);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "frameSecond", _s_set_frameSecond);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskName", _s_set_maskName);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new com.yoozoo.gta.Tools.UI.SpriteFrameRadar();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Tools.UI.SpriteFrameRadar constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new com.yoozoo.gta.Tools.UI.SpriteFrameRadar();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Tools.UI.SpriteFrameRadar constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Init(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& translator.Assignable<SpriteListItem[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<SpriteListItem[]>(L, 4)) 
                {
                    SpriteListItem[] _sprites = (SpriteListItem[])translator.GetObject(L, 2, typeof(SpriteListItem[]));
                    int _framePerSecond = LuaAPI.xlua_tointeger(L, 3);
                    SpriteListItem[] _maskSprites = (SpriteListItem[])translator.GetObject(L, 4, typeof(SpriteListItem[]));
                    
                    gen_to_be_invoked.Init( _sprites, _framePerSecond, _maskSprites );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& translator.Assignable<SpriteListItem[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    SpriteListItem[] _sprites = (SpriteListItem[])translator.GetObject(L, 2, typeof(SpriteListItem[]));
                    int _framePerSecond = LuaAPI.xlua_tointeger(L, 3);
                    
                    gen_to_be_invoked.Init( _sprites, _framePerSecond );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<SpriteListItem[]>(L, 2)) 
                {
                    SpriteListItem[] _sprites = (SpriteListItem[])translator.GetObject(L, 2, typeof(SpriteListItem[]));
                    
                    gen_to_be_invoked.Init( _sprites );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Tools.UI.SpriteFrameRadar.Init!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshSpriteName(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _m_spriteName = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.RefreshSpriteName( _m_spriteName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshSpriteNameAndMask(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _spriteName = LuaAPI.lua_tostring(L, 2);
                    string _maskSpriteName = LuaAPI.lua_tostring(L, 3);
                    
                    gen_to_be_invoked.RefreshSpriteNameAndMask( _spriteName, _maskSpriteName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RefreshAtlasNameAndSpriteName(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _m_atlasName = LuaAPI.lua_tostring(L, 2);
                    string _m_atlasKey = LuaAPI.lua_tostring(L, 3);
                    string _m_spriteName = LuaAPI.lua_tostring(L, 4);
                    
                    gen_to_be_invoked.RefreshAtlasNameAndSpriteName( _m_atlasName, _m_atlasKey, _m_spriteName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_atlasName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.atlasName);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_atlasKey(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.atlasKey);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_spriteName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.spriteName);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_frameSecond(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.frameSecond);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_maskName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.maskName);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_atlasName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.atlasName = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_atlasKey(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.atlasKey = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_spriteName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.spriteName = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_frameSecond(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.frameSecond = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_maskName(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Tools.UI.SpriteFrameRadar gen_to_be_invoked = (com.yoozoo.gta.Tools.UI.SpriteFrameRadar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.maskName = LuaAPI.lua_tostring(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
